public class test {

    public static void main(String[] args) {
        String username = "80008999";
        try {
            long beginUserPhone = Long.parseLong(username);
            System.out.println("初始号码是整数: " + beginUserPhone);
        } catch (Exception e) {
            System.out.println("初始号码必须是整数");
            e.printStackTrace();
        }
    }

}
